import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class LogListener implements ActionListener{
	Log log;
	
	public LogListener(Log pl){
		log = pl;
	}

	
	
	@Override
	public void actionPerformed(ActionEvent e) {
		switch(e.getID()){
		case(42):log.addLog(e.getActionCommand()); break;
		default: break;
		}
		
	}
	
}